const Koa = require('koa');
const bodyparser = require('koa-bodyparser');
const app = new Koa;
var cors = require('koa2-cors');
const router = require('./router');

app.use(bodyparser());
app.use(cors());

router(app);
app.listen(3000,'0.0.0.0',()=>{
	console.log('Start Server OK! Open http://localhost:3000')
})
